package com.css.fxfzysx.modules.lifeline.constants;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class TableNameConstants {

    public static final Map<Integer, String> TABLE_MAP = new HashMap<>();
    static {
        TABLE_MAP.put(1,"czt_smx_up_network");
        TABLE_MAP.put(2,"czt_smx_water_supply");
        TABLE_MAP.put(3,"czt_smx_air_receiver");
        TABLE_MAP.put(4,"czt_smx_bridge_line");
        TABLE_MAP.put(44,"czt_smx_bridge_point");
        TABLE_MAP.put(5,"czt_smx_road");
        TABLE_MAP.put(6,"czt_smx_transformer_substation");
        TABLE_MAP.put(7,"czt_smx_overhead_line");
        TABLE_MAP.put(8,"czt_smx_cable_route");
        TABLE_MAP.put(9,"czt_smx_devices");
        TABLE_MAP.put(10,"czt_smx_tv_tower");
        TABLE_MAP.put(11,"czt_smx_water_room");
        TABLE_MAP.put(12,"czt_smx_powerhouse");
        TABLE_MAP.put(13,"czt_smx_base_station");
        TABLE_MAP.put(14,"czt_smx_gas_store");
    }


    public static String getMainConstant(Integer type) {
        if(StrUtil.isBlankIfStr(type)){
            return null;
        }
        return TABLE_MAP.get(type);
    }

}
